/**
 * 
 */
package com.demo2do.wechatmcs.web.view;

import java.util.Locale;

import org.springframework.core.io.Resource;
import org.springframework.web.servlet.view.JstlView;

/**
 * @author downpour
 *
 */
public class JspView extends JstlView {
    
    /* (non-Javadoc)
     * @see org.springframework.web.servlet.view.AbstractUrlBasedView#checkResource(java.util.Locale)
     */
    public boolean checkResource(Locale locale) throws Exception {
        Resource resource = super.getWebApplicationContext().getResource(super.getUrl());
        return resource != null && resource.exists();
    }

}
